
class Accept {
  final String id;
  final String friendId;
  final String name;
  final int state;
  final String denyReason;
  final String addTime;

  const Accept({
    required this.id,
    required this.friendId,
    required this.name,
    required this.state,
    required this.denyReason,
    required this.addTime
  });

  factory Accept.fromJson(Map<String, dynamic> jsonobj) {
    var item = Accept(
      id:jsonobj['id'],
      friendId:jsonobj['friend_id'],
      name:jsonobj['name'],
      state:jsonobj['state'],
      denyReason:jsonobj['deny_reason'],
      addTime : jsonobj['add_time'],
    );
    return item;
  }
}
